﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NhbHelper.Entities
{
    public enum COLUMN_TYPE { Number = 1, Varchar2, Date };
    public enum TABLE_TYPE { Left = 1, Right, Output };

    public class TableColumn
    {        
        private string COL_NAME;
        private int COL_LENGTH;
        private COLUMN_TYPE  COL_TYPE;
        private TABLE_TYPE TBL_TYPE;
        private bool IS_KEY;

        public virtual string Col_Name
        {
            get { return COL_NAME; }
            set { COL_NAME = value; }
        }
        public virtual int Col_Length
        {
            get { return COL_LENGTH; }
            set { COL_LENGTH = value; }
        }
        public virtual COLUMN_TYPE Col_Type
        {
            get { return COL_TYPE; }
            set { COL_TYPE = value; }
        }
        public virtual TABLE_TYPE Tbl_Type
        {
            get { return TBL_TYPE; }
            set { TBL_TYPE = value; }
        }
        public virtual bool Is_Key
        {
            get { return IS_KEY; }
            set { IS_KEY = value; }
        }
        
        //default
        public TableColumn()
        {

        }
        //overloaded
        public TableColumn(string col_name, int col_lgth, COLUMN_TYPE col_t, TABLE_TYPE tt, bool is_k)
        {
            Col_Name = col_name;
            Col_Length = col_lgth;
            Col_Type = col_t;
            Tbl_Type = tt;
            Is_Key = is_k;
        }
    }

}
